package com.lhg.pattern.creational.singleton;

/**
 * @author Admin
 */
public class Singleton {
    private static  Singleton instance =new Singleton();
    Singleton() {
    }

    public static Singleton getInstance() {
        return instance;
    }
    public void showMessage(){
        System.out.println("Hello World!");
    }
}
